package com.example.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.widget.VideoView;
import android.widget.MediaController;
public class FirstActivity extends Activity {
    private VideoView my_videoview;
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_firstn);
        my_videoview=findViewById(R.id.my_videoview);
        my_videoview.setVideoPath("/mnt/shared/App/family.mp4");
        my_videoview.start();
        MediaController mediaController=new MediaController(FirstActivity.this);
        my_videoview.setMediaController(mediaController);
    }
}
